<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!-- RapidValidation 表单验证框架开始 -->
<style type="text/css">
/** 修改验证框架提示文字位置和颜色为同行显示, 字体为蓝色 */
.validation-advice {
	display: inline;
	/* color: blue; */
}
</style>

<script src="js/rapid_validation/prototype_for_validation.js"
	type="text/javascript"></script>
<script src="js/rapid_validation/validation_cn.js"
	type="text/javascript"></script>
<script src="js/rapid_validation/effects.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css"
	href="js/rapid_validation/style_min.css" />
<!-- RapidValidation  表单验证框架结束 -->
<style>
.errorMessage {
	color: red;
}

.errorLabel {
	font-weight: bold
}
</style>
<span class="errorMessage"> ${validationErrors} </span>
<table>
	<s:form action="addModule.do" method="post"
		cssClass="required-validate">
		<tr>
			<td>
				上级模块：
			</td>
			<td>
				<s:select id="pid" name="module.pid" list="list"
					cssClass="validate-selection" listKey="id" listValue="name"
					headerKey="0" headerValue="--请选择--" cssStyle="width: 153px;"></s:select>
			</td>
		</tr>
		<tr>
			<td>
				模块名称：
			</td>
			<td>
				<s:textfield name="module.name" cssClass="required" />
			</td>
		</tr>
		<tr>
			<td>
				代码：
			</td>
			<td>
				<s:textfield name="module.code" cssClass="required" />
			</td>
		</tr>
		<tr>
			<td>
				url：
			</td>
			<td>
				<s:textfield name="module.url" />
			</td>
		</tr>
		<tr>
		<tr>
			<td>
				排序：
			</td>
			<td>
				<s:textfield name="module.paixu" cssClass="validate-integer" />
			</td>
		</tr>
		<tr>
			<td>
				是否末级：
			</td>
			<td>
				<s:checkbox name="module.leaf"></s:checkbox>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<s:submit value="save"></s:submit>
			</td>
		</tr>
	</s:form>
</table>
